home *** CD-ROM | disk | FTP | other *** search
/ PD Collection CD 1 / PD Collection CD 1.iso / textual / pdftops / goo / c++ / gmempp next >
Text File  |  1996-06-08  |  440b  |  24 lines

  1. //========================================================================
  2. //
  3. // gmempp.cc
  4. //
  5. // Use gmalloc/gfree for C++ new/delete operators.
  6. //
  7. // Copyright 1996 Derek B. Noonburg
  8. //
  9. //========================================================================
  10.  
  11. #include "gmem.h"
  12.  
  13. #ifdef DEBUG_MEM
  14. void *operator new(long size) {
  15.   return gmalloc((int)size);
  16. }
  17. #endif
  18.  
  19. #ifdef DEBUG_MEM
  20. void operator delete(void *p) {
  21.   gfree(p);
  22. }
  23. #endif
  24.